﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Kooboo.Commerce.AddIn;
using System.Web.Mvc;

namespace Kooboo.Commerce.Promotions.DiscountByProduct
{
    public class DiscountByProductView : Controller, IPromotionViews
    {
        public System.Web.Mvc.RedirectToRouteResult Index()
        {
            return null;
        }

        public System.Web.Mvc.RedirectToRouteResult Settings(IPromotionRule rule)
        {
            return RedirectToAction("Index", "DiscountByProduct", new { Id = rule.Id });
        }
    }
}